<script lang="ts" setup>
import { columns, schemas, searchSchemas } from './meta';

import { BasicCrud } from '@/components/crud';
import { addConfig, delConfig, listConfig, updateConfig } from '@/api/system/config';

defineOptions({
  name: 'ConfigPage',
});
</script>

<template>
  <div>
    <BasicCrud
      :table-columns="columns"
      :form-schemas="schemas"
      :search-schemas="searchSchemas"
      :request="listConfig"
      :create-request="addConfig"
      :modify-request="updateConfig"
      :delete-request="delConfig"
      key-field="configId"
    />
  </div>
</template>

<style lang="less" scoped></style>
